#define  _CRT_SECURE_NO_WARNINGS 1

#define ROW 9
#define COL 9
#define ROWS ROW+2
#define COLS COL+2

void InitMine(char mine[ROWS][COLS], int rows, int cols)
{
	for (int i = 0; i < rows; i++)
	{
		for (int j = 0; j < cols; j++)
		{
			mine[i][j] = ' ';
		}
	}
}

void Display(char mine[ROWS][COLS], int row, int col)
{
	int i = 0, j = 0;
	for (i = 1; i <= ROW; i++)
	{
		if (i == 1)
		{
			for (j = 1; j <= col; j++)
			{
				printf("+---");
				if (j == col)
				{
					printf("+");
				}
			}
			printf("\n");
		}

		for (j = 1; j <= COL; j++)
		{
			if (j == 1)
			{
				printf("|");
			}
			printf(" %c |", mine[i][j]);
		}
		printf("\n");
		for (j = 1; j <= COL; j++)
		{
			if (j == 1)
			{
				printf("+");
			}
			printf("---+");
		}
		printf("\n");
	}
}

int main()
{
	char mine[ROWS][COLS];
	InitMine(mine, ROWS, COLS);
	Display(mine, ROW, COL);
	return 0;
}